package com.future.common.api.admin.entry;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @ClassName : SysRole
 * @Author : lby
 * @Date: 2020/12/29 9:55
 * @Description : 角色实体类
 */
@Data
@TableName("sys_role")
public class SysRole {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 角色名称
     */
    @TableField(exist = true)
    private String roleName;

    /**
     * 角色描述
     */
    @TableField(exist = true)
    private String roleDescribe;


    /**
     * 创建时间
     */
    @TableField(exist = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;


    /**
     * 修改时间
     */
    @TableField(exist = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 删除标志
     */
    @TableLogic
    @TableField(exist = true)
    private Integer delFlag;


}
